# -*- coding: utf-8 -*-
"""
-------------------------------------------------
Project Name: luffcity study project
File Name: 队列线程.py
Author: kij
Create Date: 2021/4/18
-------------------------------------------------
"""
from threading import Thread
import time


class Stack(object):

    def __init__(self):
        self.data = []

    def push(self, item):
        """ 在栈中压入一个数据 """
        self.data.append(item)

    def pop(self):
        """ 从栈中弹出一个数据 """
        return self.data.pop(-1)

    def top(self):
        """ 取栈顶的数据 """
        return self.data[-1]


class MyThread(Thread):

	def run(self):
		# print("%s 线程==%s" %(print_time(), self.name))
		print("%s 线程==%s" %(time.time(), self.name))

if __name__ == '__main__':
    print('开始')
    my = MyThread()

    obj = Stack()
    obj.push(my)
    v1 = obj.pop()
    v1.start()